<%
i = menu.menu_no - 1
-%>
<div>
  <%= check_box_tag "menus[#{i}][enabled]", true, menu.enabled == true %>
      <b><%=h l(:label_wikiextensions_tab) %>#<%= menu.menu_no%> </b>
      <%= hidden_field_tag "menus[#{i}][menu_no]", menu.menu_no %>
      
      <p>
        <label><%=h l(:field_title)%></label>
        <%= text_field_tag "menus[#{i}][title]", menu.title, :size => 70, :required => true, :disabled => !menu.enabled %>
      </p>
      <p>
        <label><%=h l(:label_wiki_page)%></label>
        <%= text_field_tag "menus[#{i}][page_name]", menu.page_name, :size => 70, :required => true, :disabled => !menu.enabled %>
      </p>
      <%= observe_field "menus[#{i}][enabled]", :function => "if (value == 'true'){$('menus[#{i}][title]').enable();$('menus[#{i}][page_name]').enable();}else{$('menus[#{i}][title]').disable();$('menus[#{i}][page_name]').disable();}" %>
</div>
